Skip to content

fix(pm-aggregator): census needs-drew labels via the GitHub list endpoint - #14231

Open
dezren39 wants to merge 2 commits into
mainfrom
xaltha/14103-needs-drew-list-endpoint
Open

dezren39 wants to merge 2 commits into
mainfrom
xaltha/14103-needs-drew-list-endpoint

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #14103

The search endpoint refuses a query with neither is:issue nor is:pull-request (HTTP 422), so every census query failed and 'What needs you' showed nothing. The list endpoint answers the same open issues+PRs per label on the core allowance. A 4xx that is not a rate limit is now named as a refused query, not a transient failure. The follow-up test commit makes cap test pages carry distinct items, since the census dedupes by ref and re-answering the same 100 items on every page collapsed the 10-page sweep to 100 items.

Verified by remote dispatch (fleet run 45357384375, Execute target command step SUCCESS): bun install (55 packages) + bun test test/needs-drew.test.ts (23 pass, 0 fail) + bunx tsc --noEmit (clean).

Note: the first verification run (45345444968) failed only on bunx tsc --noEmit with TS2688 'Cannot find type definition file for bun' — the runner checkout had no node_modules installed, so @types/bun was absent. That was a verification-environment gap, not a defect in the fix; re-running with bun install first goes green.


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…oint

Closes #14103: the search endpoint refuses a query with neither
is:issue nor is:pull-request (HTTP 422), so every census query failed
and 'What needs you' showed nothing. The list endpoint answers the
same open issues+PRs per label on the core allowance. A 4xx that is
not a rate limit is now named as a refused query, not a transient
failure.
The census dedupes by ref, so re-answering the same 100 items on
every page collapsed the 10-page sweep to 100 items, not 1000.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 923dd19e-bc71-4bbd-8099-25c01c516d60
Commits

Reviewing files that changed from the base of the PR and between 9b621f3 and 78e20c9.

Files selected for processing: 2

  • pm-stack/aggregator/src/needs-drew.ts
  • pm-stack/aggregator/test/needs-drew.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-aggregator: the needs-you census asks GitHub's search in a form it refuses for some tokens (422; not the one the dashboard runs with)

1 participant